﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Skugo.Core;
using Skugo.Shared;
using System.Diagnostics;
using System.ComponentModel;
using System.Linq.Expressions;

namespace Skugo.StandardPlugins
{
    public class FileDialogManager : Plugin
    {
        protected override void OnReceive(Byte[] data)
        {
            //// Create a reader to read the data
            //var incoming = data.ToBinaryReader();

            //// Read the message type in
            //var messageType = (MessageType)incoming.ReadByte();

            //// Based on the message type...
            //switch (messageType)
            //{
            //    // It was a message for rpc...
            //    case MessageType.PropertyRpc:
            //        {
            //            // Read the length of the rpc data
            //            var rpcDataLength = incoming.ReadInt32();

            //            // Read that data into a byte array
            //            Byte[] rpcData = incoming.ReadBytes(rpcDataLength);

            //            // Hand the data off to rpc
            //            this.PropertyRpc.Receive(rpcData);
            //            break;
            //        }

            //    default:
            //        throw new Exception("Unhandled message type!");
            //}
        }

        public override void Dispose()
        {
        }
    }
}